#ifndef _FONT_H_
#define _FONT_H_

#include "BuzzGlobals.h"

#if BUZZ_USE_FONTS == 1

#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_GLYPH_H

#include "Buzz.h"

class Font {
public:
	Font(char* filename, int height);
	~Font();

	void renderString(int posX, int posY, const char* text, ...);
	int getHeight() { return height; }
protected:
	void generateCharacter(FT_Face face, char c);

	int height;
	GLuint* textures;
	GLuint listBase;
};

#endif // BUZZ_USE_FONTS = 1
#endif
